package cc.rengu.igas.bomp.facade.enums;

/**
 * 审核操作
 *
 * @author: zhangxuran
 * @Date: 2020/3/30 0:32
 * @Description:
 */
public enum BompAuditOprTypeEnum {

    AUDIT_PASS("01", "审核通过"),
    AUDIT_REJECT("02", "审核拒绝"),

    ;

    private String type;

    private String desc;

    public String getType() {
        return type;
    }

    public String getDesc() {
        return desc;
    }

    BompAuditOprTypeEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public static boolean verifyByOprType(String type) {
        if (null == type || "".equals(type)) {
            return false;
        }

        for (BompAuditOprTypeEnum bompAuditOprTypeEnum : values()) {
            if (bompAuditOprTypeEnum.getType().equals(type)) {
                return true;
            }
        }

        return false;
    }

}
